package com.jjw.route.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jjw.route.utils.PageUtils;
import com.jjw.route.entity.PoiEntity;

import javax.naming.Name;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author jjw
 * @email 2371671097@qq.com
 * @date 2023-05-12 07:45:21
 */
public interface PoiService extends IService<PoiEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //发布文章之后，更新景点信息
    PoiEntity poiArticalRealseUpdate(String name,int time,int imgNumber);

    //获取流行度排行榜信息
    List<PoiEntity> getPrevalenceRank();

    List<PoiEntity> getAllPoi();


    //获取顶部 景点 轮播图
    List<PoiEntity> getTopPoi();

    List<PoiEntity> selectByNameList(ArrayList<String> spots_name);

    PoiEntity selectByName(String spots_name);

    List<PoiEntity> selectList(LambdaQueryWrapper<PoiEntity> wrapper);

}

